package com.naiterui.ehp.bs.im.feign;

import com.naiterui.ehp.bp.bo.patient.*;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 高亮亮
 */
@FeignClient(name = "ap", url = "${ehp.domain.ap}", configuration = FeignConfiguration.class)
public interface PatientFeginClient {

    /**
     * @param publishParamBO
     *
     * @return
     */
    @PostMapping("/inner/message/publish")
    MsgPublishBO publishMessage(@RequestBody MsgPublishParamBO publishParamBO);

    @RequestMapping("/inner/message/publish/batch")
    void publishBatchMessage(@RequestBody MsgPublishBatchParamBO publishBatchParamBO);

    /**
     * 小程序消息
     * @param publishParamBO
     * @return
     */
    @PostMapping("/inner/message/ma/publish")
    MsgPublishBO publishMaMessage(@RequestBody MsgMaPublishParamBO publishParamBO);

    /**
     * 批量小程序消息
     * @param publishBatchParamBO
     * @return
     */
    @PostMapping("/inner/message/ma/publish/batch")
    void publishBatchMaMessage(@RequestBody MsgMaPublishBatchParamBO publishBatchParamBO);


    /**
     * 获取患者本人就诊人
     * @return
     */
    @GetMapping("/inner/patient/inquirer/myself")
    Long getMyself(@RequestParam("patientId") Long patientId);

}
